import React, { FC } from 'react';
import { ResumeTmplModel } from './tmpl.types';

const COM_PREKEY = 'ResumeContentfulTmpl';

interface ResumeContentfulTmplProps extends Omit<ResumeTmplModel, 'href'> {}

const ResumeContentfulTmpl: FC<ResumeContentfulTmplProps> = (props) => {
    return (
        <>
            <div className="rsm-img">
                <img src={props.img} title={props.title} alt={props.title} />
            </div>
            <div className="rsm-title">
                <span>{props.title}</span>
            </div>
        </>
    );
};

ResumeContentfulTmpl.displayName = 'ResumeContentfulTmpl';

export { ResumeContentfulTmpl, ResumeContentfulTmplProps };
